﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using VSDBM.Code.dto;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Session["usuariologado"] = new User();
    }

    protected void btlogin_Click(object sender, EventArgs e)
    {
        if (VSDBM.Code.functions.Login.login(txtLogin.Text, txtSenha.Text))
        {
            Response.Redirect("Buscador.aspx");
        }
        else
        {
            Response.Write("<script>alert('Dados Inválidos.')</script>");
        }
    }
}